package com.atguigu.edu.realtime.publisher.util;

import org.apache.commons.lang3.time.DateFormatUtils;

import java.util.Date;

public class DateUtil {
    //获取现在时间的工具类
    public static Integer now(){
        String yyyyMMdd = DateFormatUtils.format(new Date(), "yyyyMMdd");
        return Integer.valueOf(yyyyMMdd);
    }
}
